package com.cti.commons.mqtt.repository.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.cti.commons.mqtt.repository.MqttSendMessageLog;
import com.cti.commons.mqtt.repository.MqttSendMessageRepository;

/**
 * @author et.wang
 * @description:
 * @date 2022/11/23 09:49
 */
@Service
public class MqttSendMessageRepositoryImpl implements MqttSendMessageRepository {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(MqttSendMessageLog log) {
        mongoTemplate.save(log);
    }

}
